package com.totoro.service;

import org.hibernate.Hibernate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.totoro.dao.BaseHibernateDao;
import com.totoro.dao.UserDao;
import com.totoro.domain.User;

@Service
public class UserService extends BaseService<User, Integer> {

	private UserDao userDao;

	public UserService() {
	}

	@Autowired
	@Override
	public void setBaseDao(BaseHibernateDao<User, Integer> userDao) {
		// TODO Auto-generated method stub
		this.baseDao = userDao;
		this.userDao = (UserDao) userDao;
	}
	
//	public User get(Integer id){
//		User user = userDao.get(id);
//		Hibernate.initialize(user.getActor());
//		return user;
//	}

}
